package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.util.Date;
import java.util.Set;


/**
 * 项目计划对象 查询条件类
 *
 * @author qijian
 * @date 2021-10-09
 */

@Data
@ToString
@TableName("main_project_plan")
public class ProjectPlanQuery {

    @WhereType(filed = "plan_id")
    private Long planId;
    @WhereType(filed = "plan_id", type = WhereTypeEnum.NOTIN)
    private Set<Long> planIdsNot;
    @WhereType(filed = "project_id")
    private Long projectId;
    @WhereType(filed = "project_id", type = WhereTypeEnum.IN)
    private Set<Long> projectIds;
    @WhereType(filed = "bom_id")
    private Long bomId;
    @WhereType(filed = "item_id")
    private Long itemId;
    @WhereType(filed = "process_id")
    private Long processId;
    @WhereType(filed = "start_time")
    private Date startTime;
    @WhereType(filed = "end_time")
    private Date endTime;
    @WhereType(filed = "factory_id")
    private Long factoryId;
    @WhereType(filed = "plan_id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
